package com.jiliang.member.mapper;

import com.jiliang.member.entity.MemberLogin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * ClassName: MemberLoginExMapper
 * Package: com.jiliang.member.mapper
 * Description:
 *
 * @Author: Night
 * @Create: 2024/9/12 - 8:26
 * @Version: 1.0
 */
@Mapper
public interface MemberLoginExMapper {
    /** 根据用户账号查询账号信息 */
    MemberLogin selByName(@Param("loginName") String loginName) ;

    /** 根据用户Id修改密码 */
    @Update("UPDATE member_login SET login_pwd = #{loginPwd} WHERE bo_id = #{boId}")
    int alterPass(@Param("boId") String boId, @Param("loginPwd") String loginPwd);
}
